<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class application\core\utils\File | IBOS open source</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?49f43d3208c5d7e33fa16d36107a345bf11cc00d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">IBOS open source</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-application.core.utils.html" title="Summary of application\core\utils"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li class="active">
						<a href="namespace-application.html">
							application<span></span>
						</a>
							<ul>
					<li class="active">
						<a href="namespace-application.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.html">
							cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.driver.html">
							driver						</a>
							</li>
					<li>
						<a href="namespace-application.core.cache.provider.html">
							provider						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.core.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.html">
							engines<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.engines.local.html">
							local						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.sae.html">
							sae						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.core.modules.html">
							modules						</a>
							</li>
					<li class="active">
						<a href="namespace-application.core.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.core.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.html">
							modules<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.html">
							article<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.calendar.html">
							calendar<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.calendar.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.contact.html">
							contact<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.contact.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.dashboard.html">
							dashboard<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.dashboard.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.department.html">
							department<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.department.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.diary.html">
							diary<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.diary.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.email.html">
							email<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.email.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.main.html">
							main<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.main.behaviors.html">
							behaviors						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.message.html">
							message<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.co.html">
							co						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.html">
							wx<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.wx.callback.html">
							callback						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.event.html">
							event						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-application.modules.message.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.mobile.html">
							mobile<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.mobile.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.position.html">
							position<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.position.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.recruit.html">
							recruit<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.recruit.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.role.html">
							role<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.role.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.role.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.user.html">
							user<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.user.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.vote.html">
							vote<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.vote.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.weibo.html">
							weibo<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.weibo.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.utils.html">
							utils						</a>
							</li>
								</ul></li></ul></li></ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-application.core.utils.Api.html">Api</a></li>
				<li><a href="class-application.core.utils.ApiCode.html">ApiCode</a></li>
				<li><a href="class-application.core.utils.Attach.html">Attach</a></li>
				<li><a href="class-application.core.utils.Cache.html">Cache</a></li>
				<li><a href="class-application.core.utils.Cloud.html">Cloud</a></li>
				<li><a href="class-application.core.utils.Convert.html">Convert</a></li>
				<li><a href="class-application.core.utils.Credit.html">Credit</a></li>
				<li><a href="class-application.core.utils.Database.html">Database</a></li>
				<li><a href="class-application.core.utils.DateTime.html">DateTime</a></li>
				<li><a href="class-application.core.utils.Env.html">Env</a></li>
				<li class="active"><a href="class-application.core.utils.File.html">File</a></li>
				<li><a href="class-application.core.utils.Ftp.html">Ftp</a></li>
				<li><a href="class-application.core.utils.IBOS.html">IBOS</a></li>
				<li><a href="class-application.core.utils.Image.html">Image</a></li>
				<li><a href="class-application.core.utils.Mail.html">Mail</a></li>
				<li><a href="class-application.core.utils.Module.html">Module</a></li>
				<li><a href="class-application.core.utils.Org.html">Org</a></li>
				<li><a href="class-application.core.utils.Page.html">Page</a></li>
				<li><a href="class-application.core.utils.PHPExcel.html">PHPExcel</a></li>
				<li><a href="class-application.core.utils.String.html">String</a></li>
				<li><a href="class-application.core.utils.System.html">System</a></li>
				<li><a href="class-application.core.utils.Upgrade.html">Upgrade</a></li>
				<li><a href="class-application.core.utils.Url.html">Url</a></li>
				<li><a href="class-application.core.utils.WebSite.html">WebSite</a></li>
				<li><a href="class-application.core.utils.Xml.html">Xml</a></li>
				<li><a href="class-application.core.utils.XMLParse.html">XMLParse</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class File</h1>











	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-application.html">application</a>\<a href="namespace-application.core.html">core</a>\<a href="namespace-application.core.utils.html">utils</a><br>
		

				<b>Copyright:</b>
				Copyright &copy; 2012-2013 IBOS Inc<br>
				<b>Author:</b>
				banyanCheung <a href="m&#97;&#105;&#108;&#116;&#111;&#58;&#x62;&#x61;&#x6e;&#x79;&#x61;&#x6e;&#x40;i&#98;&#111;&#115;&#46;&#99;&#111;&#109;&#x2e;&#x63;&#x6e;">&#x62;&#x61;&#x6e;&#x79;&#x61;&#x6e;&#x40;i&#98;&#111;&#115;&#46;&#99;&#111;&#109;&#x2e;&#x63;&#x6e;</a><br>
			<b>Located at</b> system/core/utils/File.php		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="getUpload" id="_getUpload">

			<td class="attributes"><code>
				 public static
				object
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getUpload">#</a>
			<code>getUpload( <span>string <var>$fileArea</var></span>, <span>string <var>$module</var> = <span class="php-quote">'temp'</span> </span> )</code>

			<div class="description short">
				<p>返回引擎上传接口</p>
			</div>

			<div class="description detailed hidden">
				<p>返回引擎上传接口</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$fileArea</var></dt>
						<dd>上传文件域</dd>
						<dt><var>$module</var></dt>
						<dd>模块名</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						object
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getAttachUrl" id="_getAttachUrl">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getAttachUrl">#</a>
			<code>getAttachUrl( )</code>

			<div class="description short">
				<p>获取附件目录</p>
			</div>

			<div class="description detailed hidden">
				<p>获取附件目录</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="download" id="_download">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_download">#</a>
			<code>download( <span>array <var>$attach</var></span>, <span>array <var>$downloadInfo</var> = <span class="php-keyword1">array</span>() </span> )</code>

			<div class="description short">
				<p>下载文件接口</p>
			</div>

			<div class="description detailed hidden">
				<p>下载文件接口</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$attach</var></dt>
						<dd>附件数组</dd>
						<dt><var>$downloadInfo</var></dt>
						<dd>下载额外信息</dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="fileName" id="_fileName">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fileName">#</a>
			<code>fileName( <span>string <var>$fileName</var></span> )</code>

			<div class="description short">
				<p>io:storage 读取storage文件地址接口</p>
			</div>

			<div class="description detailed hidden">
				<p>io:storage 读取storage文件地址接口</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$fileName</var></dt>
						<dd>要读取的文件名</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="imageSize" id="_imageSize">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_imageSize">#</a>
			<code>imageSize( <span>string <var>$image</var></span> )</code>

			<div class="description short">
				<p>获取图片规格</p>
			</div>

			<div class="description detailed hidden">
				<p>获取图片规格</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$image</var></dt>
						<dd>图片地址</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>成功读取图片信息， false 读取失败
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fileSize" id="_fileSize">

			<td class="attributes"><code>
				 public static
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fileSize">#</a>
			<code>fileSize( <span>string <var>$file</var></span> )</code>

			<div class="description short">
				<p>获取文件大小接口</p>
			</div>

			<div class="description detailed hidden">
				<p>获取文件大小接口</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$file</var></dt>
						<dd>文件名</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer<br>返回文件大小的字节数，如果出错返回 false 并生成一条 E_WARNING 级的错误。
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fileExists" id="_fileExists">

			<td class="attributes"><code>
				 public static
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fileExists">#</a>
			<code>fileExists( <span>string <var>$file</var></span> )</code>

			<div class="description short">
				<p>io:storage 检查文件或目录是否存在</p>
			</div>

			<div class="description detailed hidden">
				<p>io:storage 检查文件或目录是否存在</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$file</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="createFile" id="_createFile">

			<td class="attributes"><code>
				 public static
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_createFile">#</a>
			<code>createFile( <span>string <var>$fileName</var></span>, <span>string <var>$content</var></span> )</code>

			<div class="description short">
				<p>io：storage 写入文件内容接口</p>
			</div>

			<div class="description detailed hidden">
				<p>io：storage 写入文件内容接口</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$fileName</var></dt>
						<dd>要写入的文件名</dd>
						<dt><var>$content</var></dt>
						<dd>写入的内容</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="readFile" id="_readFile">

			<td class="attributes"><code>
				 public static
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_readFile">#</a>
			<code>readFile( <span>string <var>$fileName</var></span> )</code>

			<div class="description short">
				<p>io：storage 读取文件名接口</p>
			</div>

			<div class="description detailed hidden">
				<p>io：storage 读取文件名接口</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$fileName</var></dt>
						<dd>文件名</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getTempPath" id="_getTempPath">

			<td class="attributes"><code>
				 public static
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getTempPath">#</a>
			<code>getTempPath( )</code>

			<div class="description short">
				<p>io：storage 获取临时读写文件夹接口</p>
			</div>

			<div class="description detailed hidden">
				<p>io：storage 获取临时读写文件夹接口</p>



					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="clearDir" id="_clearDir">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_clearDir">#</a>
			<code>clearDir( <span>string <var>$dir</var></span> )</code>

			<div class="description short">
				<p>io:stirage 清空指定目录里文件 （不包含子目录）</p>
			</div>

			<div class="description detailed hidden">
				<p>io:stirage 清空指定目录里文件 （不包含子目录）</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$dir</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="deleteFile" id="_deleteFile">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_deleteFile">#</a>
			<code>deleteFile( <span>string <var>$fileName</var></span> )</code>

			<div class="description short">
				<p>io:storage 删除指定文件</p>
			</div>

			<div class="description detailed hidden">
				<p>io:storage 删除指定文件</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$fileName</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="clearDirs" id="_clearDirs">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_clearDirs">#</a>
			<code>clearDirs( <span>string <var>$srcDir</var></span>, <span> <var>$except</var> = <span class="php-keyword1">array</span>() </span> )</code>

			<div class="description short">
				<p>递归清空目录包括目录本身</p>
			</div>

			<div class="description detailed hidden">
				<p>递归清空目录包括目录本身</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$srcDir</var></dt>
						<dd>目标文件夹路径</dd>
						<dt><var>$except</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="fileSockOpen" id="_fileSockOpen">

			<td class="attributes"><code>
				 public static
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fileSockOpen">#</a>
			<code>fileSockOpen( <span>string <var>$url</var></span>, <span>integer <var>$limit</var> = <span class="php-num">0</span></span>, <span>string <var>$post</var> = <span class="php-quote">''</span></span>, <span>string <var>$cookie</var> = <span class="php-quote">''</span></span>, <span>string <var>$bysocket</var> = <span class="php-keyword1">FALSE</span></span>, <span>integer <var>$ip</var> = <span class="php-quote">''</span></span>, <span>boolean <var>$timeout</var> = <span class="php-num">15</span></span>, <span>type <var>$block</var> = <span class="php-keyword1">true</span></span>, <span>type <var>$encodeType</var> = <span class="php-quote">'URLENCODE'</span></span>, <span>type <var>$allowcurl</var> = <span class="php-keyword1">TRUE</span></span>, <span> <var>$position</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>远程文件请求函数</p>
			</div>

			<div class="description detailed hidden">
				<p>远程文件请求函数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$url</var></dt>
						<dd>请求的地址</dd>
						<dt><var>$limit</var></dt>
						<dd>请求的字符数</dd>
						<dt><var>$post</var></dt>
						<dd>要提交的参数</dd>
						<dt><var>$cookie</var></dt>
						<dd>设定HTTP请求中"Cookie: "部分的内容。</dd>
						<dt><var>$bysocket</var></dt>
						<dd>$ip</dd>
						<dt><var>$ip</var></dt>
						<dd>$timeout 连接超时时间</dd>
						<dt><var>$timeout</var></dt>
						<dd><p>$block If mode is 0, the given stream will be switched to non-blocking mode,
and if 1, it will be switched to blocking mode.</p></dd>
						<dt><var>$block</var></dt>
						<dd>$encodeType</dd>
						<dt><var>$encodeType</var></dt>
						<dd>$allowcurl</dd>
						<dt><var>$allowcurl</var></dt>
						<dd>$position</dd>
						<dt><var>$position</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed<br>请求返回的内容
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="checkFolderPerm" id="_checkFolderPerm">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_checkFolderPerm">#</a>
			<code>checkFolderPerm( <span>mixed <var>$fileList</var></span> )</code>

			<div class="description short">
				<p>检查文件所在目录的读写权限</p>
			</div>

			<div class="description detailed hidden">
				<p>检查文件所在目录的读写权限</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$fileList</var></dt>
						<dd>文件路径，数组或字符串形式</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="testDirWriteable" id="_testDirWriteable">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_testDirWriteable">#</a>
			<code>testDirWriteable( <span>string <var>$dir</var></span> )</code>

			<div class="description short">
				<p>测试文件夹是否可写</p>
			</div>

			<div class="description detailed hidden">
				<p>测试文件夹是否可写</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$dir</var></dt>
						<dd>文件夹路径</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean<br>是否可写
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="makeDir" id="_makeDir">

			<td class="attributes"><code>
				 public static
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_makeDir">#</a>
			<code>makeDir( <span>string <var>$dir</var></span>, <span>integer <var>$mode</var> = <span class="php-num">0777</span></span>, <span>boolean <var>$makeIndex</var> = <span class="php-keyword1">true</span> </span> )</code>

			<div class="description short">
				<p>创建单层文件夹</p>
			</div>

			<div class="description detailed hidden">
				<p>创建单层文件夹</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$dir</var></dt>
						<dd>要创建的文件夹</dd>
						<dt><var>$mode</var></dt>
						<dd>文件夹权限</dd>
						<dt><var>$makeIndex</var></dt>
						<dd>创建文件夹索引文件</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="makeDirs" id="_makeDirs">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_makeDirs">#</a>
			<code>makeDirs( <span>string <var>$dir</var></span>, <span>integer <var>$mode</var> = <span class="php-num">0777</span></span>, <span>boolean <var>$makeIndex</var> = <span class="php-keyword1">true</span> </span> )</code>

			<div class="description short">
				<p>递归创建文件夹</p>
			</div>

			<div class="description detailed hidden">
				<p>递归创建文件夹</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$dir</var></dt>
						<dd>要创建的文件夹路径</dd>
						<dt><var>$mode</var></dt>
						<dd>文件夹权限</dd>
						<dt><var>$makeIndex</var></dt>
						<dd>创建文件夹索引文件</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean<br>成功与否
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="copyToDir" id="_copyToDir">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_copyToDir">#</a>
			<code>copyToDir( <span>string <var>$file</var></span>, <span>string <var>$copyToPath</var></span> )</code>

			<div class="description short">
				<p>复制一个文件到文件夹</p>
			</div>

			<div class="description detailed hidden">
				<p>复制一个文件到文件夹</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$file</var></dt>
						<dd>文件名</dd>
						<dt><var>$copyToPath</var></dt>
						<dd>指定文件夹</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="copyDir" id="_copyDir">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_copyDir">#</a>
			<code>copyDir( <span>string <var>$srcDir</var></span>, <span>string <var>$destDir</var></span> )</code>

			<div class="description short">
				<p>复制文件夹到另一个文件夹</p>
			</div>

			<div class="description detailed hidden">
				<p>复制文件夹到另一个文件夹</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$srcDir</var></dt>
						<dd>目标文件夹</dd>
						<dt><var>$destDir</var></dt>
						<dd>指定文件夹</dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="exportCsv" id="_exportCsv">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_exportCsv">#</a>
			<code>exportCsv( <span>string <var>$filename</var></span>, <span>string <var>$data</var></span> )</code>

			<div class="description short">
				<p>导出excel文件</p>
			</div>

			<div class="description detailed hidden">
				<p>导出excel文件</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$filename</var></dt>
						<dd>导出的文件名</dd>
						<dt><var>$data</var></dt>
						<dd>导出的数据</dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="exportHtml" id="_exportHtml">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_exportHtml">#</a>
			<code>exportHtml( <span> <var>$filename</var></span>, <span> <var>$data</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
			</table>
		</div>











</div>
	</div>

	<div id="footer">
		IBOS open source API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
